import java.util.Scanner;

/**
 * @Author 12629
 * @Description：
 */


public class Test {


    public static int add(int a,int b) {
        return a+b;
    }

    /*public static double add(int a,int b) {
        return (double) a+b;
    }*/

    public static int add(int a,int b,int c) {
        return a+b;
    }

    public static double add(double a,double b) {
        return a+b;
    }


    public static void main(String[] args) {
        System.out.println(add(1, 2));
        System.out.println(add(1.7, 1.5));
        System.out.println(add(1, 2, 4));




        /*int x = 10;
        int y = 20;
        int ret = add(x,y);
        System.out.println(ret);

        double d1 = 12.3;
        double d2 = 34.5;
        add(d1,d2);*/

    }









    public static void main16(String[] args) {
        System.out.println("交换前："+10+" " +20);
        System.out.println("交换后："+20+" " +10);

        //int a = 10;
        //System.out.println(&a);

    }

    public static void main15(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println("交换前："+a+" " +b);
        swap(a,b);
        System.out.println("交换后："+a+" " +b);
    }

    public static void swap(int x,int y) {
        int tmp = x;
        x = y;
        y = tmp;
        //System.out.println("交换后："+x+" " +y);
    }

    /**
     * 求 n 的阶乘
     * @param n
     * @return
     */
    public static int fac(int n) {
        int ret = 1;
        for (int i = 1; i <= n; i++) {
            ret *= i;
        }
        return ret;
    }

    /**
     * 求 k 的阶乘的和
     * @param k
     * @return
     */
    public static int facSum(int k) {
        int sum = 0;
        for (int i = 1; i <= k; i++) {
            sum += fac(i);
        }
        return sum;
    }

    public static void main14(String[] args) {
        System.out.println(facSum(3));
        System.out.println(facSum(5));
    }

    public static void main13(String[] args) {
        int x = 10;
        int y = 20;
        int ret = sum(x,y);
        System.out.println(ret);
    }

    public static int sum(int a,int b) {
        //System.out.println(a+b);
        return a+b;
    }

    public static boolean isLeapYear(int year){
        int a = 10;
        if((0 == year % 4 && 0 != year % 100) || 0 == year % 400){
            return true;
        }else{
            return false;
        }
    }

    public static void fun() {
        System.out.println("fun");
    }








    public static void main12(String[] args) {


        int k = 10;
        Scanner scanner = new Scanner(System.in);
        Scanner scanner2 = new Scanner(System.in);


        int n = 7;
        for (int i = 31; i >= 0 ; i-=2) {
            System.out.print(((n >>> i) & 1 )+" ");
        }
        System.out.println();
        for (int i = 30; i >= 0 ; i-=2) {
            System.out.print(((n >>> i) & 1 )+" ");
        }
    }

    public static void main11(String[] args) {
        int n = 6;
        int count = 0;
        while (n != 0) {
            count++;
            n = n&(n-1);
        }
        System.out.println(count);
    }

    public static void main10(String[] args) {
        //153 = 1^3 + 5^3 + 3^3
        for (int i = 0; i < 999999; i++) {
            int count = 0;//计算当前i 有几位数
            int tmp = i;
            while (tmp != 0) {
                count++;
                tmp = tmp / 10;
            }
            //count的值 是多少已经计算完成   i还是没有变的
            //计算i[tmp]的每一位
            tmp = i;
            int sum = 0;
            while (tmp != 0) {
                sum += Math.pow(tmp%10,count);
                tmp /= 10;
            }
            if(sum == i) {
                System.out.println(i);
            }
        }
    }

    public static void main9(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= i ; j++) {
                //System.out.print(i+"*"+j +" = "+i*j+" ");
                System.out.print("\t"+j+"*"+i +" = "+j*i+" ");//
            }
            System.out.println();
        }
    }

    public static void main8(String[] args) {
        Scanner in = new Scanner(System.in);
        int count = 3;
        while (count != 0) {
            System.out.println("请输入你的密码,你还有 " + count +" 次机会！");
            String password = in.nextLine();
            if(password.equals("1234")) {
                System.out.println("登录成功！");
                break;
            }else {
                System.out.println("密码错误！");
                count--;
            }
        }
    }
    public static void main7(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            for(int i = 0;i < a; i++) {

                for(int j = 0;j < a;j++) {
                    if(i == j || (i+j) == a-1) {
                        System.out.print("*");
                    }else {
                        System.out.print(" ");
                    }
                }
                System.out.println();
            }
        }
    }
    public static void main6(String[] args) {
        double sum = 0;
        int flg = 1;
        for (int i = 1;i <= 100;i++) {
            sum = sum + 1.0/i  * flg;
            flg = -flg;
        }
        System.out.println(sum);
    }
    public static void main5(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = a % b;
        while (c != 0) {
            a = b;
            b = c;
            c = a % b;
        }
        System.out.println(b);
    }
    public static void main4(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        for (int k = 1; k <= n ; k++) {
            int i = 2;
            for (; i <= Math.sqrt(k); i++) {
                if(k % i == 0) {
                    //System.out.println(i+"不是素数！");
                    break;
                }
            }
            if(i > Math.sqrt(k)) {
                System.out.println(k+"是素数");
            }
        }
    }

    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        for (int k = 1; k <= n ; k++) {
            int i = 2;
            for (; i <= k/2; i++) {
                if(k % i == 0) {
                    //System.out.println(i+"不是素数！");
                    break;
                }
            }
            if(i > k/2) {
                System.out.println(k+"是素数");
            }
        }
    }
    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        for (int k = 1; k <= n ; k++) {
            int i = 2;
            for (; i < k; i++) {
                if(k % i == 0) {
                    //System.out.println(i+"不是素数！");
                    break;
                }
            }
            if(i == k) {
                System.out.println(k+"是素数");
            }
        }
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();//100
        int count = 0;
        for (int i = 1; i <= n; i++) {
            if(i / 10 == 9) {
                count++;
            }else if(i % 10 == 9) {
                count++;
            }
        }
        System.out.println(count);
    }
}
